<template>
<div class='main-contain'>
    任务金额排行榜
    <button @click="handle">点击</button>
</div>
</template>
<script lang='ts'>
export default {
  name: "TaskAmount", // keep-alive中include属性匹配组件name,就是给组件命个命哈
};
</script>
<script lang='ts' setup>
import { useRouter } from "vue-router";
const router=useRouter()
const handle=()=>{
  router.push("/index")
// window.location.reload()
}
</script>
<style lang='scss' scoped>
</style>